package com.company.management.service;

import com.company.management.dto.UserDto;
import com.company.management.modal.entity.User;

import java.util.List;

public interface UserService {
    int save(User user);
    int update(User user);

    UserDto findUserByUserName(String name);


    UserDto findUserByUserNameAndPwd(String userName, String password);

    UserDto findUserById(Integer userId);

    UserDto findUserByToken(String token);

    List<UserDto> listAll() ;

    int batchUpdateUsers(List<User> users);
}
